/* -----------------------------------------------------
 iCompose
 UploadView.h
 
 Created by Team: THE BEARD on 10/11/09.
 
 Members who contributed to this file:
 1. Ethan Holmes
 2. Woo Jin Chang
 
 List of changes to previous member:
 Version 1:
 Nov 12, 2009 (Woo Jin)
 - implemented Uploading method
 Nov 13, 2009 (Woo Jin)
 - revised Uploading method
 Nov 14, 2009 (Woo Jin)
 - revised Uploading method
 Nov 15, 2009 (Woo Jin)
 - revised Uploading method
 Nov 17, 2009 (Woo Jin)
 - revised Uploading method
 
 Simon Fraser University, 2009.
 ----------------------------------------------------- */


#import <UIKit/UIKit.h>
#import <sqlite3.h>
#import "iComposeAppDelegate.h"
#import "Staff.h"
#import "MainView.h"
#define kDataKey	@"Data"
#define kDataBase	@"staffDataBase.sql"

@interface UploadView : UIViewController <UITableViewDelegate, UITableViewDataSource>{
	MainView *mainView;
	NSMutableArray *staffArray;
	NSString *dataFilePath;
	NSString *dataFilePathDataBase;
	NSUInteger row;
	sqlite3 *database;
}

@property (nonatomic, retain) MainView *mainView;
@property (nonatomic, retain) NSMutableArray *staffArray;
@property (nonatomic, retain) NSString *dataFilePath;
@property (nonatomic, retain) NSString *dataFilePathDataBase;
@property NSUInteger row;

-(IBAction)back;
-(IBAction)Uploading;
-(void) checkAndCreateDataBase;
-(void) changeAndUploadDataBase;

@end
